Skip to content

Conversation

@sunishsheth2009
Copy link
Contributor

What changes are proposed in this pull request?

  • [Fix] Fixing http_request open_ai_client mixin

How is this tested?

https://eng-ml-inference.staging.cloud.databricks.com/editor/notebooks/801627480376241?o=1653573648247579#command/6888661323786970

from databricks.sdk import WorkspaceClient
from databricks.sdk.service.serving import ExternalFunctionRequestHttpMethod


response = WorkspaceClient().serving_endpoints.http_request(
  conn="test_sql_slack",
  method=ExternalFunctionRequestHttpMethod.POST,
  path="/api/chat.postMessage",
  json={"channel": "C07MB25Q6H3", "text": "Hello!"},
)

response.json()
response.text
response.content
response.status_code

All the above returns the correct response

@hectorcast-db
Copy link
Contributor

hectorcast-db commented Jan 27, 2025

serving.py is a generated file and must not be updated manually. It must be generated after the changes are done upstream.

@sunishsheth2009 sunishsheth2009 force-pushed the sunish-http-request-wrapper branch from ef6f276 to 0297a3c Compare January 27, 2025 18:18
@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-py

Inputs:

  • PR number: 874
  • Commit SHA: 0297a3cf4c8d2bb64ba88e8106865405a676410b

Checks will be approved automatically on success.

@sunishsheth2009
Copy link
Contributor Author

Closing this PR because of this: #876

github-merge-queue bot pushed a commit that referenced this pull request Jan 29, 2025
… the underlying API. (#876)

## What changes are proposed in this pull request?

This PR updates the Model Serving `http_request` function so that it
properly uses the underlying generated API.

This PR also updates the API of a few unrelated services. 

## How is this tested?

Added unit tests from PR #874
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants